package com.wxy.demo.design_pattern.method_factory;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/11/4 10:24
 */
public class Demo {
    public static void main(String[] args) {
        FactoryProvider provider = new FactoryProvider();
        CoffeeFactory american = provider.getFactory("American");
        american.createCoffee().show();

        CoffeeFactory latte = provider.getFactory("Latte");
        latte.createCoffee().show();
    }
}
